package com.my.study.designPatterns.abstractFactoryPattern;

public class NYPizzaFactory extends PizzaFactory {

    @Override
    Pizza createPizze(Integer type) {

        IngredientFactory ingredientFactory = new NYIngredientFactory();
        Pizza pizza = new NYPizza(ingredientFactory);
        if(type == 1){
            pizza.name = "NYPizza Number 1";
        }else{
            pizza.name = "NYPizza Other Numbers";
        }
        return pizza;
    }
}
